package com.iotboss.web.controller.system;

import com.iotboss.common.core.controller.BaseController;
import com.iotboss.common.core.domain.iot.IotOrUser;
import com.iotboss.common.core.page.TableDataInfo;
import com.iotboss.system.service.IotOrUserService;
import com.mchange.lang.LongUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/system/iotOrUser")
public class IotOrUserController extends BaseController {
    @Autowired
    private IotOrUserService orUserService;
    /**
     * 查询操作记录列表
     *
     * @param customId
     * @return
     */
    @PreAuthorize("@ss.hasPermi('system:iotOrUser:list')")
    @GetMapping("/list")
    public TableDataInfo list(Long customId) {
        startPage();
        List<IotOrUser> list = orUserService.selectIotOrUserList(customId);
        return getDataTable(list);
    }
}
